﻿package subframes.visual.buttons 
{
	import flash.display.DisplayObject;
	import flash.display.SimpleButton;
	import flash.display.Sprite;
	import flash.display.Stage;
	
	import tools.GraphicTools;
	
	/**
	 * ...
	 * @author 
	 */
	public class BtnMain extends SimpleButton 
	{
		public var mainRef:Main;
		public var stageRef:Stage;
		public function BtnMain(parentFrame:BaseFrame) 
		{
			mainRef = parentFrame.mainFrame;
			stageRef = parentFrame.stageRef;
			/*  */
			upState = GraphicTools.duplicateImageAsSprite(mainRef.BulkData.getBitmap("btnUp"));
			overState = GraphicTools.duplicateImageAsSprite(mainRef.BulkData.getBitmap("btnOver"));
			downState = GraphicTools.duplicateImageAsSprite(mainRef.BulkData.getBitmap("btnDown"));
			hitTestState = GraphicTools.duplicateImageAsSprite(mainRef.BulkData.getBitmap("btnDown"));
			//upState = mainRef.BulkData.getBitmap("btnUp");
			//overState = mainRef.BulkData.getBitmap("btnOver");
			//downState = mainRef.BulkData.getBitmap("btnDown");
			//hitTestState = mainRef.BulkData.getBitmap("btnDown");
			
			useHandCursor = true;
		}
		
		/* Назначение текста */
		public function SetText(value:String):void
		{
			
		}
		
	}

}